#include <stdio.h>
#include <stdlib.h>
#include <sqlite3.h>
#include "main.h"
#include "db_sqlite3.h"
#include "builtin/builtins.h"

#ifndef _DB_FILE
# define _DB_FILE "testdb"
#endif

#ifdef ENABLE_DB_SQLITE3
int main(int argc, char **argv)
{
  sqlite3 *hndl;

  if ( db_set_arg(".") )
    exit (1);
  if ( db_sqlite3_init(_DB_FILE, (void **)&hndl) )
    exit (2);
  db_sqlite3_close(hndl);
  exit (0);
}
#endif
